<#assign className = table.className>   
package ${basepackage}.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaoshi.dao.base.${className}Dao;
import com.xiaoshi.pojo.base.${className};
import com.xiaoshi.service.${className}Service;
import com.xiaoshi.util.Paginator;

@Service
public class ${className}ServiceImpl implements ${className}Service {

	@Autowired
	private ${className}DaoImpl ${table.lowerClassName}Dao;

	@Override
	public ${className} get(${table.idCol.javaType} id) {
		${table.lowerClassName}Dao.get(id);
	}
	
	@Override
	public void save(${className} entity) {
		${table.lowerClassName}Dao.save(entity);
	}
	
	@Override
	public void delete(${table.idCol.javaType} id) {
		${table.lowerClassName}Dao.delete(id);
	}
	
	@Override
	public void update(${className} entity) {
		${table.lowerClassName}Dao.update(entity);
	}
	
	@Override
	public Paginator findByPage(Paginator pagin) {
		${table.lowerClassName}Dao.findByPage("findByPage",pagin);
	}
}
